Commit f2858e93 authored by Andre Klapper's avatar Andre Klapper 💬 Committed by Andre Klapper

Replace deprecated gtk_widget_set_usize by gtk_widget_set_size_request

2009-02-19  Andre Klapper  <a9016009@gmx.de>

	* 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
parent 0d922b8c
2009-02-19 Andre Klapper <a9016009@gmx.de>
* 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 <a9016009@gmx.de>
* libanjuta/anjuta-launcher.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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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;
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment