[nautilus-actions] Fix display of icon for new actions
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus-actions] Fix display of icon for new actions
- Date: Tue, 14 Jul 2009 18:48:40 +0000 (UTC)
commit 12fb6033c7220ae7c1d44255d6f8aebc679dfb21
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Jul 1 01:26:55 2009 +0200
Fix display of icon for new actions
ChangeLog | 1 +
src/nact/nact-imenu-item.c | 5 ++++-
src/nact/nact-main-window.c | 4 ++--
src/nact/nact-window.c | 6 +++---
4 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f28daee..21b7ee8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
nact_iprefs_save_iprofile_conditions_folder_uri): New functions.
* src/nact/nact-iprofile-conditions.c:
+ Fix display of icon for new actions.
Save state and position of LegendDialog and GtkFileChooser.
2009-06-30 Pierre Wieser <pwieser trychlos org>
diff --git a/src/nact/nact-imenu-item.c b/src/nact/nact-imenu-item.c
index c1eef7b..c30fe3b 100644
--- a/src/nact/nact-imenu-item.c
+++ b/src/nact/nact-imenu-item.c
@@ -189,6 +189,9 @@ nact_imenu_item_all_widgets_showed( NactWindow *dialog )
{
GtkWidget *label_widget = base_window_get_widget( BASE_WINDOW( dialog ), "MenuLabelEntry" );
gtk_widget_grab_focus( label_widget );
+
+ GtkWidget *icon_widget = base_window_get_widget( BASE_WINDOW( dialog ), "MenuIconComboBoxEntry" );
+ on_icon_changed( GTK_ENTRY( GTK_BIN( icon_widget )->child ), dialog );
}
/**
@@ -265,7 +268,7 @@ on_icon_changed( GtkEntry *icon_entry, gpointer user_data )
GtkWidget *image = base_window_get_widget( BASE_WINDOW( dialog ), "IconImage" );
g_assert( GTK_IS_WIDGET( image ));
const gchar *icon_name = gtk_entry_get_text( icon_entry );
- g_debug( "%s: icon_name=%s", thisfn, icon_name );
+ /*g_debug( "%s: icon_name=%s", thisfn, icon_name );*/
GtkStockItem stock_item;
GdkPixbuf *icon = NULL;
diff --git a/src/nact/nact-main-window.c b/src/nact/nact-main-window.c
index 9608022..4272690 100644
--- a/src/nact/nact-main-window.c
+++ b/src/nact/nact-main-window.c
@@ -307,8 +307,8 @@ on_runtime_init_toplevel( BaseWindow *window )
static void
on_actions_list_selection_changed( GtkTreeSelection *selection, gpointer user_data )
{
- static const gchar *thisfn = "nact_main_window_on_actions_list_selection_changed";
- g_debug( "%s: selection=%p, user_data=%p", thisfn, selection, user_data );
+ /*static const gchar *thisfn = "nact_main_window_on_actions_list_selection_changed";
+ g_debug( "%s: selection=%p, user_data=%p", thisfn, selection, user_data );*/
g_assert( BASE_IS_WINDOW( user_data ));
BaseWindow *window = BASE_WINDOW( user_data );
diff --git a/src/nact/nact-window.c b/src/nact/nact-window.c
index 5b934bd..45282fe 100644
--- a/src/nact/nact-window.c
+++ b/src/nact/nact-window.c
@@ -185,7 +185,7 @@ instance_dispose( GObject *window )
for( is = self->private->signals ; is ; is = is->next ){
NactWindowRecordedSignal *str = ( NactWindowRecordedSignal * ) is->data;
g_signal_handler_disconnect( str->instance, str->handler_id );
- g_debug( "%s: disconnecting signal handler %p:%lu", thisfn, str->instance, str->handler_id );
+ /*g_debug( "%s: disconnecting signal handler %p:%lu", thisfn, str->instance, str->handler_id );*/
g_free( str );
}
g_slist_free( self->private->signals );
@@ -346,7 +346,7 @@ nact_window_get_actions( NactWindow *window )
void
nact_window_signal_connect( NactWindow *window, GObject *instance, const gchar *signal, GCallback fn )
{
- static const gchar *thisfn = "nact_window_signal_connect";
+ /*static const gchar *thisfn = "nact_window_signal_connect";*/
gulong handler_id = g_signal_connect( instance, signal, fn, window );
@@ -355,5 +355,5 @@ nact_window_signal_connect( NactWindow *window, GObject *instance, const gchar *
str->handler_id = handler_id;
window->private->signals = g_slist_prepend( window->private->signals, str );
- g_debug( "%s: connecting signal handler %p:%lu", thisfn, instance, handler_id );
+ /*g_debug( "%s: connecting signal handler %p:%lu", thisfn, instance, handler_id );*/
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]