Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A fake pull request to test the github codereview tool #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bus/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/dbusimpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/dbusimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/engineproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/engineproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/factoryproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/factoryproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/ibusimpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/ibusimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/inputcontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/inputcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/matchrule.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/matchrule.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/option.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/panelproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/panelproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bus/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
56 changes: 28 additions & 28 deletions bus/test-matchrule.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,38 @@
int
main(gint argc, gchar **argv)
{
BusMatchRule *rule, *rule1;
g_type_init ();
BusMatchRule *rule, *rule1;
g_type_init ();

rule = bus_match_rule_new (" type='signal' , interface = 'org.freedesktop.IBus' ");
g_assert (rule->message_type == DBUS_MESSAGE_TYPE_SIGNAL);
g_assert (g_strcmp0 (rule->interface, "org.freedesktop.IBus") == 0 );
g_object_unref (rule);
rule = bus_match_rule_new (" type='signal' , interface = 'org.freedesktop.IBus' ");
g_assert (rule->message_type == DBUS_MESSAGE_TYPE_SIGNAL);
g_assert (g_strcmp0 (rule->interface, "org.freedesktop.IBus") == 0 );
g_object_unref (rule);

rule = bus_match_rule_new ("type='method_call', interface='org.freedesktop.IBus' ");
g_assert (rule->message_type == DBUS_MESSAGE_TYPE_METHOD_CALL);
g_assert (g_strcmp0 (rule->interface, "org.freedesktop.IBus") == 0 );
g_object_unref (rule);
rule = bus_match_rule_new ("type='method_call', interface='org.freedesktop.IBus' ");
g_assert (rule->message_type == DBUS_MESSAGE_TYPE_METHOD_CALL);
g_assert (g_strcmp0 (rule->interface, "org.freedesktop.IBus") == 0 );
g_object_unref (rule);

rule = bus_match_rule_new ("type='signal',"
"interface='org.freedesktop.DBus',"
"member='NameOwnerChanged',"
"arg0='ibus.freedesktop.IBus.config',"
"arg0='ibus.freedesktop.IBus.config',"
"arg2='ibus.freedesktop.IBus.config'");
g_assert (rule->message_type == DBUS_MESSAGE_TYPE_SIGNAL);
g_assert (g_strcmp0 (rule->interface, "org.freedesktop.DBus") == 0 );
rule1 = bus_match_rule_new ("type='signal',"
"interface='org.freedesktop.DBus',"
"member='NameOwnerChanged',"
"arg0='ibus.freedesktop.IBus.config',"
"arg0='ibus.freedesktop.IBus.config',"
"arg2='ibus.freedesktop.IBus.config'");
rule = bus_match_rule_new ("type='signal',"
"interface='org.freedesktop.DBus',"
"member='NameOwnerChanged',"
"arg0='ibus.freedesktop.IBus.config',"
"arg0='ibus.freedesktop.IBus.config',"
"arg2='ibus.freedesktop.IBus.config'");
g_assert (rule->message_type == DBUS_MESSAGE_TYPE_SIGNAL);
g_assert (g_strcmp0 (rule->interface, "org.freedesktop.DBus") == 0 );
rule1 = bus_match_rule_new ("type='signal',"
"interface='org.freedesktop.DBus',"
"member='NameOwnerChanged',"
"arg0='ibus.freedesktop.IBus.config',"
"arg0='ibus.freedesktop.IBus.config',"
"arg2='ibus.freedesktop.IBus.config'");

g_assert (bus_match_rule_is_equal (rule, rule1));
g_assert (bus_match_rule_is_equal (rule, rule1));

g_object_unref (rule);
g_object_unref (rule1);
g_object_unref (rule);
g_object_unref (rule1);

return 0;
return 0;
}
8 changes: 4 additions & 4 deletions bus/test-registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

int main()
{
g_type_init ();
BusRegistry *registry = bus_registry_new ();
g_object_unref (registry);
return 0;
g_type_init ();
BusRegistry *registry = bus_registry_new ();
g_object_unref (registry);
return 0;
}
2 changes: 1 addition & 1 deletion client/gtk2/ibusimcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
Expand Down
1 change: 0 additions & 1 deletion client/gtk3/ibusim.c

This file was deleted.

81 changes: 81 additions & 0 deletions client/gtk3/ibusim.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/* vim:set et ts=4: */
/* ibus - The Input Bus
* Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
* Copyright (C) 2008-2010 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/

#include <glib/gprintf.h>
#include <gtk/gtk.h>
#include <gtk/gtkimmodule.h>
#include <ibus.h>
#include "ibusimcontext.h"

#define IBUS_LOCALDIR ""
static const GtkIMContextInfo ibus_im_info = {
"ibus",
"IBus (Intelligent Input Bus)",
"ibus",
IBUS_LOCALDIR,
"ja:ko:zh:*"
};

static const GtkIMContextInfo *info_list[] = {
&ibus_im_info
};

G_MODULE_EXPORT const gchar*
g_module_check_init (GModule *module)
{
return glib_check_version (GLIB_MAJOR_VERSION,
GLIB_MINOR_VERSION,
0);
}

G_MODULE_EXPORT void
im_module_init (GTypeModule *type_module)
{
/* make module resident */
g_type_module_use (type_module);

ibus_im_context_register_type (type_module);
}

G_MODULE_EXPORT void
im_module_exit (void)
{
}

G_MODULE_EXPORT GtkIMContext *
im_module_create (const gchar *context_id)
{
if (g_strcmp0 (context_id, "ibus") == 0) {
IBusIMContext *context;
context = ibus_im_context_new ();
return (GtkIMContext *) context;
}
return NULL;
}

G_MODULE_EXPORT void
im_module_list (const GtkIMContextInfo ***contexts,
gint *n_contexts)
{
*contexts = info_list;
*n_contexts = G_N_ELEMENTS (info_list);
}

1 change: 0 additions & 1 deletion client/gtk3/ibusimcontext.c

This file was deleted.

Loading