Merge lp:~bratsche/indicator-me/auto-select-entry into lp:indicator-me
Proposed by
Cody Russell
| Status: | Merged |
|---|---|
| Approved by: | David Barth |
| Approved revision: | 83 |
| Merge reported by: | David Barth |
| Merged at revision: | not available |
| Proposed branch: | lp:~bratsche/indicator-me/auto-select-entry |
| Merge into: | lp:indicator-me |
| Diff against target: |
73 lines (+35/-7) 1 file modified
src/indicator-me.c (+35/-7) |
| To merge this branch: | bzr merge lp:~bratsche/indicator-me/auto-select-entry |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| David Barth | Approve | ||
| Ted Gould (community) | Approve | ||
|
Review via email:
|
|||
To post a comment you must log in.
Looks good
review approve
On Thu, 2010-03-11 at 20:26 +0000, Cody Russell wrote: applet- developers) /bugs.launchpad .net/bugs/ 528302 me.c' www.gnu. org/licenses/>. y_changed (GtkWidget *widget, shell_select_ item (GTK_MENU_SHELL (widget), GTK_WIDGET (menuitem)); parent_ changed (GtkWidget *widget, get_parent (widget); y_changed) , val_if_ fail(DBUSMENU_ IS_MENUITEM( newitem) , FALSE); val_if_ fail(DBUSMENU_ IS_GTKCLIENT( client) , FALSE); set_text( entry, dbusmenu_ menuitem_ property_ get(newitem, DBUSMENU_ ENTRY_MENUITEM_ PROP_TEXT) ); set_width_ chars (entry, 23); /* set some nice aspect ratio for the menu */ parent_ changed) , gtkclient. ..
> Cody Russell has proposed merging lp:~bratsche/indicator-me/auto-select-entry into lp:indicator-me.
>
> Requested reviews:
> Indicator Applet Developers (indicator-
> Related bugs:
> #528302 The text field should receive focus automatically
> https:/
>
> differences between files attachment (review-diff.txt)
> === modified file 'src/indicator-
> --- src/indicator-me.c 2010-03-11 17:10:36 +0000
> +++ src/indicator-me.c 2010-03-11 20:26:16 +0000
> @@ -7,17 +7,18 @@
>
> Authors:
> Ted Gould <email address hidden>
> + Cody Russell <email address hidden>
>
> - This program is free software: you can redistribute it and/or modify it
> - under the terms of the GNU General Public License version 3, as published
> + This program is free software: you can redistribute it and/or modify it
> + under the terms of the GNU General Public License version 3, as published
> by the Free Software Foundation.
>
> - This program is distributed in the hope that it will be useful, but
> - WITHOUT ANY WARRANTY; without even the implied warranties of
> - MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
> + This program is distributed in the hope that it will be useful, but
> + WITHOUT ANY WARRANTY; without even the implied warranties of
> + MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
> PURPOSE. See the GNU General Public License for more details.
>
> - You should have received a copy of the GNU General Public License along
> + You should have received a copy of the GNU General Public License along
> with this program. If not, see <http://
> */
>
> @@ -253,9 +254,32 @@
> }
>
> static gboolean
> +menu_visibilit
> + IdoEntryMenuItem *menuitem)
> +{
> + gtk_menu_
> +
> + return FALSE;
> +}
> +
> +static void
> +entry_
> + gpointer user_data)
> +{
> + GtkWidget *parent = gtk_widget_
> +
> + if (parent && GTK_IS_MENU_SHELL (parent))
> + {
> + g_signal_connect (parent,
> + "map", G_CALLBACK (menu_visibilit
> + widget);
> + }
> +}
> +
> +static gboolean
> new_entry_item (DbusmenuMenuitem * newitem,
> DbusmenuMenuitem * parent,
> - DbusmenuClient * client)
> + DbusmenuClient * client)
> {
> g_return_
> g_return_
> @@ -267,6 +291,10 @@
> gtk_entry_
> gtk_entry_
>
> + g_signal_connect (ido,
> + "notify::parent", G_CALLBACK (entry_
> + NULL);
> +
> dbusmenu_