Skip to content

Commit

Permalink
shell: removing function get_num_monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
Giselle Machado committed Aug 4, 2014
1 parent 4599025 commit bb3f1cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
27 changes: 0 additions & 27 deletions shell/ev-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,33 +279,6 @@ ev_gui_menu_position_tree_selection (GtkMenu *menu,
ev_gui_sanitise_popup_position (menu, widget, x, y);
}

/**
* get_num_monitors: Get the number of user monitors.
* @window: optional GtkWindow to look at.
*
* Returns: Number of monitors, -1 if uncertain situation (like multiple screens)
*/
gint
get_num_monitors (GtkWindow *window)
{
GdkDisplay *display;
GdkScreen *screen;
gint num_screen;

display = gdk_display_get_default ();
num_screen = gdk_display_get_n_screens (display);

if (num_screen != 1)
return -1;

if (window)
screen = gtk_window_get_screen (window);
else
screen = gdk_display_get_screen (display, 0);

return gdk_screen_get_n_monitors (screen);
}

static void
file_filter_add_mime_types (GdkPixbufFormat *format, GtkFileFilter *filter,
GtkFileFilter *supported_filter)
Expand Down
2 changes: 0 additions & 2 deletions shell/ev-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ void ev_gui_menu_position_tree_selection (GtkMenu *menu,
gboolean *push_in,
gpointer user_data);

gint get_num_monitors (GtkWindow * window);

void file_chooser_dialog_add_writable_pixbuf_formats (GtkFileChooser *chooser);
GdkPixbufFormat* get_gdk_pixbuf_format_by_extension (const gchar *uri);

Expand Down

0 comments on commit bb3f1cc

Please sign in to comment.