From f2858e93f8ab04d2796aaf3a4ed0f9189c1d1107 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Thu, 19 Feb 2009 00:46:01 +0000 Subject: [PATCH] Replace deprecated gtk_widget_set_usize by gtk_widget_set_size_request 2009-02-19 Andre Klapper * plugins/debug-manager/sharedlib.c: * plugins/debug-manager/signals.c: * plugins/gtodo/interface.c: * plugins/gtodo/mcategory.c: * plugins/scintilla/scintilla/PlatGTK.cxx: * plugins/scintilla/scintilla/test-scintilla.cxx: * plugins/scintilla/text_editor.c: Replace deprecated gtk_widget_set_usize by gtk_widget_set_size_request svn path=/trunk/; revision=4765 --- ChangeLog | 11 +++++++++++ plugins/debug-manager/sharedlib.c | 2 +- plugins/debug-manager/signals.c | 2 +- plugins/gtodo/interface.c | 2 +- plugins/gtodo/mcategory.c | 2 +- plugins/scintilla/scintilla/PlatGTK.cxx | 8 ++++---- plugins/scintilla/scintilla/test-scintilla.cxx | 2 +- plugins/scintilla/text_editor.c | 2 +- 8 files changed, 21 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 161e0a707..f1bd809b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 2009-02-19 Andre Klapper + * plugins/debug-manager/sharedlib.c: + * plugins/debug-manager/signals.c: + * plugins/gtodo/interface.c: + * plugins/gtodo/mcategory.c: + * plugins/scintilla/scintilla/PlatGTK.cxx: + * plugins/scintilla/scintilla/test-scintilla.cxx: + * plugins/scintilla/text_editor.c: + Replace deprecated gtk_widget_set_usize by gtk_widget_set_size_request + +2009-02-19 Andre Klapper + * libanjuta/anjuta-launcher.c: * plugins/class-inheritance/class-inherit.c: * plugins/debug-manager/watch.c: diff --git a/plugins/debug-manager/sharedlib.c b/plugins/debug-manager/sharedlib.c index a8c72618e..6f3aa3a79 100644 --- a/plugins/debug-manager/sharedlib.c +++ b/plugins/debug-manager/sharedlib.c @@ -211,7 +211,7 @@ create_sharedlibs_gui (Sharedlibs *sl) AnjutaUI *ui; window3 = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_widget_set_usize (window3, 170, -2); + gtk_widget_set_size_request (window3, 170, -2); gtk_window_set_title (GTK_WINDOW (window3), _("Shared libraries")); gtk_window_set_wmclass (GTK_WINDOW (window3), "sharedlibs", "Anjuta"); gtk_window_set_default_size (GTK_WINDOW (window3), 240, 230); diff --git a/plugins/debug-manager/signals.c b/plugins/debug-manager/signals.c index 591269201..e6a70839d 100644 --- a/plugins/debug-manager/signals.c +++ b/plugins/debug-manager/signals.c @@ -349,7 +349,7 @@ create_signals_gui (Signals *sg) AnjutaUI *ui; window3 = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_widget_set_usize (window3, 170, -2); + gtk_widget_set_size_request (window3, 170, -2); gtk_window_set_title (GTK_WINDOW (window3), _("Kernel signals")); gtk_window_set_wmclass (GTK_WINDOW (window3), "signals", "Anjuta"); gtk_window_set_default_size (GTK_WINDOW (window3), 240, 230); diff --git a/plugins/gtodo/interface.c b/plugins/gtodo/interface.c index 2078bfaf5..615b0d001 100644 --- a/plugins/gtodo/interface.c +++ b/plugins/gtodo/interface.c @@ -141,7 +141,7 @@ GtkWidget * gui_create_todo_widget() /* add drop down menu's */ mw.option = gtk_option_menu_new(); mw.menu = gtk_menu_new(); - // gtk_widget_set_usize(mw.option, 120 , -1); + // gtk_widget_set_size_request(mw.option, 120 , -1); gtk_option_menu_set_menu(GTK_OPTION_MENU(mw.option), mw.menu); gtk_box_pack_start(GTK_BOX(mw.toolbar), mw.option, FALSE, FALSE, 0); diff --git a/plugins/gtodo/mcategory.c b/plugins/gtodo/mcategory.c index 8eb9e3ed2..d6759a3c9 100644 --- a/plugins/gtodo/mcategory.c +++ b/plugins/gtodo/mcategory.c @@ -74,7 +74,7 @@ void category_manager(void) gtk_list_store_set(list, &iter, 0, mw.mitems[i]->date, 1, 1, -1); } - gtk_widget_set_usize(GTK_WIDGET(dialog), 350, 250); + gtk_widget_set_size_request(GTK_WIDGET(dialog), 350, 250); gtk_widget_show_all(dialog); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); diff --git a/plugins/scintilla/scintilla/PlatGTK.cxx b/plugins/scintilla/scintilla/PlatGTK.cxx index 6fa3d60eb..943db66b3 100644 --- a/plugins/scintilla/scintilla/PlatGTK.cxx +++ b/plugins/scintilla/scintilla/PlatGTK.cxx @@ -1760,7 +1760,7 @@ void Window::SetPosition(PRectangle rc) { #else gtk_widget_set_uposition(id, rc.left, rc.top); - gtk_widget_set_usize(id, rc.right - rc.left, rc.bottom - rc.top); + gtk_widget_set_size_request(id, rc.right - rc.left, rc.bottom - rc.top); #endif } @@ -1797,7 +1797,7 @@ void Window::SetPositionRelative(PRectangle rc, Window relativeTo) { alloc.height = rc.bottom - rc.top; gtk_widget_size_allocate(id, &alloc); #endif - gtk_widget_set_usize(PWidget(id), sizex, sizey); + gtk_widget_set_size_request(PWidget(id), sizex, sizey); } PRectangle Window::GetClientPosition() { @@ -2178,14 +2178,14 @@ PRectangle ListBoxX::GetDesiredRect() { + 2 * (ythickness + GTK_CONTAINER(PWidget(list))->border_width + 1)); #endif - gtk_widget_set_usize(GTK_WIDGET(PWidget(list)), -1, height); + gtk_widget_set_size_request(GTK_WIDGET(PWidget(list)), -1, height); // Get the size of the scroller because we set usize on the window gtk_widget_size_request(GTK_WIDGET(scroller), &req); rc.right = req.width; rc.bottom = req.height; - gtk_widget_set_usize(GTK_WIDGET(list), -1, -1); + gtk_widget_set_size_request(GTK_WIDGET(list), -1, -1); int width = maxItemCharacters; if (width < 12) width = 12; diff --git a/plugins/scintilla/scintilla/test-scintilla.cxx b/plugins/scintilla/scintilla/test-scintilla.cxx index 9dfeec24e..c4cdd4ab8 100644 --- a/plugins/scintilla/scintilla/test-scintilla.cxx +++ b/plugins/scintilla/scintilla/test-scintilla.cxx @@ -95,7 +95,7 @@ int main(int argc, char **argv) gtk_container_add (GTK_CONTAINER(win), sci); g_signal_connect (G_OBJECT (win), "delete-event", G_CALLBACK (gtk_main_quit), NULL); - gtk_widget_set_usize (GTK_WIDGET (win), 500, 600); + gtk_widget_set_size_request (GTK_WIDGET (win), 500, 600); gtk_window_set_default_size (GTK_WINDOW (win), 500, 600); gtk_widget_show (sci); gtk_widget_show (win); diff --git a/plugins/scintilla/text_editor.c b/plugins/scintilla/text_editor.c index f782010f7..33c5c4c2c 100644 --- a/plugins/scintilla/text_editor.c +++ b/plugins/scintilla/text_editor.c @@ -235,7 +235,7 @@ text_editor_add_view (TextEditor *te) (glong) app->accel_group, 0); */ - gtk_widget_set_usize (scintilla, 50, 50); + gtk_widget_set_size_request (scintilla, 50, 50); gtk_widget_show (scintilla); gtk_box_set_spacing (GTK_BOX (te->vbox), 3); -- 2.11.4.GIT